package structural.adapter.clazz;

import structural.adapter.ITransformer;

/**
 * @Description: 测试类
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class AdapterTest {
    public static void main(String[] args) {
        ITransformer alternator110Adapter = new Alternator110Adapter();
        System.out.println("110V电压适配器，当前电压是：" + alternator110Adapter.transform() + " V");

        ITransformer alternator220Adapter = new Alternator220Adapter();
        System.out.println("220V电压适配器，当前电压是：" + alternator220Adapter.transform() + " V");
    }
}
